If the power goes off during a disk write (or someone kicks out a plug) it is possible for an index to become corrupted. Whenever you get an error the first thing to do is to sign everyone off all of the SK Module programs then use the "SK Net Manager..." (multi-user and network file server versions) or the "SK ManagerΓäó" (single user) program and "Compact Files". This will rebuild the damaged index. The indexes cannot be rebuilt if they are in use by another program so make sure that all of the SK Modules (and NetSERVE) have Quit before trying to Compact the files. (Compact Files also physically removes all deleted records so it can also make your files smaller.)
Compiler Errors
0 There has been no program error since using the Error() function.
1 Divide by Zero
2 Math Error
3 An Operation attempted to assign a value outside the Minimum and
Maximum range specified for an item.
4 Stack Overflow. (not enough Memory)
5 Undefined Step. (Connection not made)
6 Unimplemented Function.
7 An operation was attempted on an item that did not have a value. Usually a date or number field that was left blank rather than zero.
The following errors are unconditional and will not be trapped by the compiler.
Bad Data Type
Broken File
Bad Function
Find Specific Record Logic Error
Import illogical condition
Scroll Logic Error
Stack Underflow
Trap Logic Error
Undefined Instruction Type
Unknown Error
Compiler Failures
0 No Error
1 User Chose Cancel in Import File, Export File, or Start Report.
2 File not Found
3 Not Enough Memory in Import File
4 Range error in Import File
5 Printer I/O Error in Start Report
6 Write Error in Update Record
7 File I/O Error During Import File or Export File
8 Duplicate Index Error in Update Record or Import File
9 Unable to Open File in Export File, Find Record, Empty File, or Compact File.
10 Record Not Found in Find Record.
11 File in Use in Find Record, Empty File, Compact file, Import File, or Export File.
12 Write Permission denied in a Import File, Export File, or Update Record.
13 Attempt To delete New Record in Delete Record.
14 Out of Disk Space.
15 Could Not Lock Record (multi-user.)
16 File - damage - Compact File Before continuing.
17 Key Length is too Long.
c-tree Errors
1000 - > See c-tree errors.
10000 - > See system errors.
1002 Key Value already exists in the index
1003 Could not delete the key value since record byte does not match associated data record position in index.
1004 Could not find key value in index. No deletion was performed.
1012 Could not open file. Either File does not exist, filename points to incorrect file name, or file is locked by another process.
1014 File appears corrupt at open. Compact File.
1015 Data File has been compacted but not cleared. Compact File.
1016 Could not create index file. Either no space is available on disk or filename points to improper name or permission to create was denied.
1017 Could not create data file. See 1016
1018 Tried to create existing index file.
1019 Tried to create existing data file.
1020 Key length to large for node size. There must be room for at least 3 key values per node. Reduce index size.
1024 Could not close file. Usually means memory is damaged.
1025 Bad link in deleted node. Compact File.
1030 recbyt exceeds logical end of file. Compact file.
1034 Could not find correct predecessor node. Should not show up in a single user system. Indicates that an Index insertion was interrupted before completion. Compact file.
1035 Seek Failed. Possible causes are: out of disk space, corrupted record position in file, or corrupted file descriptor.
1036 Read failed. Possible cause is: corrupted data record position in file.
1037 Write failed. See 1036
1043 current configuration parameters are inconsistent with the configuration parameters at the time of file creation.
1045 Index key length exceeds the maximum length parameter.
1046 File is already in use.
1055 could not delete file Another process may have gained control over file.